Solving The Grid Connection Problem